﻿@model KM.ENT.entGroupNews

@{
    ViewBag.Title = "Edit";
    Layout = "~/Areas/Admin/Views/Shared/MasterAdmin.cshtml";
}

<div class="row">
    <div class="col-lg-12">
        <ol class="breadcrumb">
            <li><a href="ui-sliders-progress.html#">Genius</a></li>
            <li><a href="ui-sliders-progress.html#">UI Features</a></li>
            <li class="active">Sliders &amp; Progress</li>
        </ol>
    </div>

    <div class="col-lg-12">
        <div class="box">
            <div class="box-header">
                <h2><i class="fa fa-edit"></i>Chi tiết loại sản phẩm @ViewBag.me</h2>
                <div class="box-icon">
                    <a href="form-elements.html#" class="btn-setting"><i class="fa fa-wrench"></i></a>
                    <a href="form-elements.html#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
                    <a href="form-elements.html#" class="btn-close"><i class="fa fa-times"></i></a>
                </div>
            </div>
            <div class="box-content">
                @using (Html.BeginForm("edit", "GroupNew", FormMethod.Post, new { @class = "form-horizontal" }))
                {
                    @Html.AntiForgeryToken()
                    @Html.ValidationSummary(true)
                    @Html.ValidationSummary(true)
                    <table class="table">
                        <tbody>
                            <tr>
                                <td>
                                    <label class="control-label" for="focusedInput">Nhóm tin</label></td>
                                <td>
                                    <div class="controls">@Html.DropDownListFor(m => m.ParentId, new SelectList(ViewBag.lstGN, "Id", "Name"), "===Chọn loại sản phẩm===")</td>
                            </tr>
                            <tr>
                                <td>
                                    <label class="control-label" for="focusedInput">Tên Nhóm</label></td>
                                <td>@Html.HiddenFor(t => t.Id)
                                    @Html.TextBoxFor(model => model.Name, new { @class = "form-control focused" })
                                    @Html.ValidationMessageFor(model => model.Name)</td>
                            </tr>
                            <tr>
                                <td>
                                    <label class="control-label" for="focusedInput">Tag</label></td>
                                <td>@Html.TextBoxFor(model => model.Tag, new { @class = "form-control focused" })
                                    @Html.ValidationMessageFor(model => model.Tag)</td>
                            </tr>
                            <tr>
                                <td>
                                    <label class="control-label" for="focusedInput">Title</label></td>
                                <td>@Html.TextBoxFor(model => model.Title, new { @class = "form-control focused" })
                                    @Html.ValidationMessageFor(model => model.Title)</td>
                            </tr>
                            <tr>
                                <td>
                                    <label class="control-label" for="focusedInput">Description</label></td>
                                <td>@Html.TextBoxFor(model => model.Description, new { @class = "form-control focused" })
                                    @Html.ValidationMessageFor(model => model.Description)</td>
                            </tr>
                            <tr>
                                <td>
                                    <label class="control-label" for="focusedInput">Keyword</label></td>
                                <td>@Html.TextBoxFor(model => model.Keyword, new { @class = "form-control focused" })
                                    @Html.ValidationMessageFor(model => model.Keyword)</td>
                            </tr>
                            <tr>
                                <td>
                                    <label class="control-label" for="focusedInput">Thứ tự</label></td>
                                <td>@Html.TextBoxFor(model => model.Index, new { @class = "form-control focused" })
                                    @Html.ValidationMessageFor(model => model.Index)</td>
                            </tr>
                        </tbody>
                    </table>
                   
                   
                    <div class="form-actions">
                        <button type="submit" class="btn btn-primary">Save changes</button>
                        <button class="btn" type="reset">Cancel</button>
                    </div>

                }
            </div>
        </div>
    </div>
</div>

@section java
    {
    <!--JavaScript-->

}

